/*
<input class="magic-radio" type="radio" name="radio" id="r1">
<label for="r1">Normal</label>
*/

/*
<input class="magic-checkbox" type="checkbox" name="layout" id="c1">
<label for="c1">Normal</label>
*/

@keyframes hover-color {
  from {
    border-color: #c0c0c0; }
  to {
    border-color: @theme-color }
}
//radio样式
.magic-radio{
  position: absolute;
  display: none;
}

.magic-radio[disabled]{
  cursor: not-allowed;
}

.magic-radio + label{
  display: block;
  cursor: pointer;
  vertical-align: middle;
}
.magic-radio + label:hover:before {
  animation-duration: 0.4s;
  animation-fill-mode: both;
  animation-name: hover-color;
}
.magic-radio + label:before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: 15px;
  height: 15px;
  content: '';
  border: 1px solid #c0c0c0;
}
.magic-radio + label:after {
  position: absolute;
    display: none;
    content: '';
}
.magic-radio[disabled] + label{
  cursor: not-allowed;
  color: #e4e4e4;
}
.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after{
    cursor: not-allowed;
}
.magic-radio[disabled] + label:hover:before{
    border: 1px solid #e4e4e4;
    animation-name: none;
}
.magic-radio[disabled] + label:before{
    border-color: #e4e4e4;
}
.magic-radio:checked + label:before {
  animation-name: none;
}
.magic-radio:checked + label:after{
  display: block;
}
.magic-radio + label:before {
  border-radius: 50%;
}
.magic-radio + label:after {
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: @theme-color;
}
.magic-radio:checked + label:before {
  border: 1px solid @theme-color;
}
.magic-radio:checked[disabled] + label:before {
  border: 1px solid #c9e2f9;
}
.magic-radio:checked[disabled] + label:after {
  background: #c9e2f9;
}


//checkbox样式
//隐藏checkbox固定样式
.magic-checkbox{
  //opacity: 0;
  display: none;
}
.magic-checkbox + label{
  #rem.custom-property(min-width, 15px);
  #rem.custom-property(min-height, 15px);
  #rem.custom-property(margin-bottom, -10px);
  #rem.custom-property(margin-right, 5px);
  #rem.custom-property(padding-left, 13px);
  border: 1px solid #D9D9D9;
  color: @theme-color;
  font: bold 12px '宋体';
  background-color: white;
  cursor:pointer;
  position: relative;
  #rem.custom-property(top, -8px);
  .dib
}
.magic-checkbox:checked + label {
  border: 1px solid @theme-color;

}
.magic-checkbox:checked + label:after {
  content: '\2714'; //勾选符号
  #rem.custom-property(font-size, 18px);
  position: absolute;
  #rem.custom-property(top, -4px);
  left: 0;
  color: @theme-color;
}